package pool.dbpool ;

import java.sql.Connection ;

/**
 * 连接池数据库连接对象
 * @author 80002165 @date 2017年7月14日 下午7:23:10
 */
public class PooledConnection {
    Connection connection = null ;// 数据库连接对象
    boolean busy = false ;// 用来标记连接是否在使用
    
    public PooledConnection(Connection connection) {
        super() ;
        this.connection = connection ;
    }

    public Connection getConnection() {
        return connection ;
    }

    public void setConnection(Connection connection) {
        this.connection = connection ;
    }

    public boolean isBusy() {
        return busy ;
    }

    public void setBusy(boolean busy) {
        this.busy = busy ;
    }
    
    
    
}
